package com.mida.bms.report.controller;

import com.mida.bms.report.entity.DocReportCollectImg;
import com.mida.bms.report.service.DocReportCollectImgService;
import com.mida.bms.report.vo.DocReportCollectImgVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

/**
 * @author ：bzy
 * @description：图片上传
 */
@RestController
@RequestMapping("/docReportCollectImgController")
@CrossOrigin
@Slf4j
public class DocReportCollectImgController {


    @Autowired
    private DocReportCollectImgService docReportCollectImgService;



    /**
     * 获取当前患者是否已经存在图片记录
     *
     * @return
     * @throws IOException
     */
    @GetMapping(value = "/queryExaminationVo", produces = {"application/json;charset=UTF-8"})
    @ResponseBody
    public DocReportCollectImgVo queryExamination(String postId){

        return docReportCollectImgService.queryExaminationVo(postId);
    }
}
